package com.niuquan.activitie;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import org.json.JSONException;
import org.json.JSONObject;

public class niu_info extends Activity {
    //此页面为牛人的信息介绍
    //这个页面有很多状态，自己查看，他人在发布任务前查看，他人在发布任务后查看
    //不同状态页面内容不同
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_niu_info);
        String info = savedInstanceState.getString("info");
        try {
            JSONObject jinfo = new JSONObject(info);
            TextView citytext = (TextView)findViewById(R.id.citytext);
            citytext.setText(jinfo.get("city").toString());

        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
}
